//
//  ViewController.m
//  sha
//
//  Created by 沙智超 on 2018/3/22.
//  Copyright © 2018年 沙智超. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController
static ViewController *view;
+(instancetype)sharedInstance{
    static dispatch_once_t oneToke;
    dispatch_once(&oneToke, ^{
        view  = [[ViewController alloc] init];
    });
    return view;
}
- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    NSDecimalNumber *number = [NSDecimalNumber decimalNumberWithString:@"1.21"];
    
    number = [number decimalNumberByAdding:[NSDecimalNumber decimalNumberWithMantissa:1 exponent:2 isNegative:NO]];
    
    NSLog(@"----%@----",number);
    
    
   
}

- (void) aaa{
    
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
